package cn.caplike.demo.spring.bean.lifecycle.bean.post.processor;

import org.springframework.context.support.AbstractApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Main App
 *
 * @author LiKe
 * @version 1.0.0
 * @date 2020-03-31 16:51
 */
public class Client {

    public static void main(String[] args) {
        System.out.println("- start -");

        AbstractApplicationContext applicationContext = new ClassPathXmlApplicationContext("bean-bean-post-processor.xml");
        Object book = applicationContext.getBean("book");
        System.out.println("book: " + book);
        applicationContext.registerShutdownHook();

        System.out.println("- end -");
    }

}
